500 |
How can I select a column
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutMarkSearchColumn(VARIANT_FALSE); spG2antt1->PutSingleSel(VARIANT_FALSE); spG2antt1->PutFullRowSelect(EXG2ANTTLib::exRectSel); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Column1")))->PutSelected(VARIANT_TRUE); spG2antt1->GetColumns()->Add(L"Column2"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem("One"),long(1),"One"); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValue(var_Items1->AddItem("Two"),long(1),"Two"); spG2antt1->GetItems()->SelectAll(); |
499 |
How can I avoid focusing a new cell, when user presses an arrow, page, home or end key, while the editor is opened
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exLeftArrow,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exRightArrow,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exUpArrow,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exDownArrow,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exHomeKey,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exEndKey,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exPageUpKey,long(0)); spG2antt1->PutDefaultEditorOption(EXG2ANTTLib::exPageDownKey,long(0)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor()->PutEditType(EXG2ANTTLib::EditType); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor()->PutEditType(EXG2ANTTLib::EditType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem(long(0)),long(1),long(1)); EXG2ANTTLib::IItemsPtr var_Items1 = spG2antt1->GetItems(); var_Items1->PutCellValue(var_Items1->AddItem(long(2)),long(1),long(3)); |
498 |
How can I expand predefined items in a drop down list editor as I type
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown"))); var_Column->PutDef(EXG2ANTTLib::exCellValueFormat,long(1)); EXG2ANTTLib::IEditorPtr var_Editor = var_Column->GetEditor(); var_Editor->PutOption(EXG2ANTTLib::exExpandOnSearch,VARIANT_TRUE); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->PutDropDownAutoWidth(EXG2ANTTLib::exDropDownEditorWidth); var_Editor->AddItem(1,L"<b>CObject</b> class",long(1)); var_Editor->InsertItem(2,L"<b>CCmdTarget</b> class",long(2),long(1)); var_Editor->InsertItem(3,L"<b>CWnd</b> class",long(3),long(2)); var_Editor->InsertItem(6,L"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",long(1),long(1)); var_Editor->AddItem(4,L"Exceptions",long(1)); var_Editor->InsertItem(7,L"<b>System</b> Exceptions",long(2),long(4)); var_Editor->AddItem(5,L"File Services",long(2)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
497 |
How can I add an extra button to a date picker editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spG2antt1->PutDefaultItemHeight(20); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->AddButton("B1",long(2),long(1),"This is a bit of text that's shown when the cursor hovers the button B1",vtMissing,vtMissing); var_Editor->PutButtonWidth(20); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(0)); var_Items->AddItem(long(1)); |
496 |
How can I add an extra button to a spin editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spG2antt1->PutDefaultItemHeight(20); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SpinType); var_Editor->AddButton("B1",long(2),long(1),"This is a bit of text that's shown when the cursor hovers the button B1",vtMissing,vtMissing); var_Editor->PutButtonWidth(20); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(0)); var_Items->AddItem(long(1)); |
495 |
How can I remove or delete the buttons in the editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->AddButton("B1",long(1),long(0),"This is a bit of text that's shown when the cursor hovers the button B1",vtMissing,vtMissing); var_Editor->AddButton("B3",long(2),long(1),"This is a bit of text that's shown when the cursor hovers the button B3",vtMissing,vtMissing); var_Editor->AddButton("B4",long(1),long(1),"This is a bit of text that's shown when the cursor hovers the button B4",vtMissing,vtMissing); var_Editor->RemoveButton("B1"); var_Editor->PutButtonWidth(20); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Text 1"); var_Items->AddItem("Text 2"); |
494 |
How can I hide the buttons in the editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spG2antt1->PutDefaultItemHeight(24); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->AddButton("B1",long(1),long(0),"This is a bit of text that's shown when the cursor hovers the button B1",vtMissing,vtMissing); var_Editor->AddButton("B3",long(2),long(1),"This is a bit of text that's shown when the cursor hovers the button B3",vtMissing,vtMissing); var_Editor->AddButton("B4",long(1),long(1),"This is a bit of text that's shown when the cursor hovers the button B4",vtMissing,vtMissing); var_Editor->PutButtonWidth(0); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Text 1"); var_Items->AddItem("Text 2"); |
493 |
How can I change the width of the buttons in the editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spG2antt1->PutDefaultItemHeight(24); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->AddButton("B1",long(1),long(0),"This is a bit of text that's shown when the cursor hovers the button B1",vtMissing,vtMissing); var_Editor->AddButton("B3",long(2),long(1),"This is a bit of text that's shown when the cursor hovers the button B3",vtMissing,vtMissing); var_Editor->AddButton("B4",long(1),long(1),"This is a bit of text that's shown when the cursor hovers the button B4",vtMissing,vtMissing); var_Editor->PutButtonWidth(24); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Text 1"); var_Items->AddItem("Text 2"); |
492 |
How can I add extra buttons to an editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->AddButton("B1",long(1),long(0),"This is a bit of text that's shown when the cursor hovers the button B1",vtMissing,vtMissing); var_Editor->AddButton("B2",long(2),long(0),"This is a bit of text that's shown when the cursor hovers the button B2",vtMissing,vtMissing); var_Editor->AddButton("B3",long(3),long(1),"This is a bit of text that's shown when the cursor hovers the button B3",vtMissing,vtMissing); var_Editor->AddButton("B4",long(1),long(1),"This is a bit of text that's shown when the cursor hovers the button B4",vtMissing,vtMissing); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Text 1"); var_Items->AddItem("Text 2"); |
491 |
is there any function to specify the number of rows / items being visible in a drop down list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); var_Editor->PutDropDownRows(1); var_Editor->PutPopupAppearance(EXG2ANTTLib::FlatApp); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
490 |
How can I change the border for a drop down editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutPopupAppearance(EXG2ANTTLib::FlatApp); spG2antt1->GetItems()->AddItem("Today"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->GetCellEditor(var_Items->AddItem("Today"),long(0))->PutEditType(EXG2ANTTLib::DateType); |
489 |
How can I remove a predefined item in a drop down editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); var_Editor->PutOption(EXG2ANTTLib::exColorListShowName,VARIANT_TRUE); var_Editor->RemoveItem(255); spG2antt1->GetItems()->AddItem(long(255)); spG2antt1->GetItems()->AddItem(long(65280)); |
488 |
How can I remove or clear all predefined items in a drop down editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); var_Editor->ClearItems(); var_Editor->AddItem(255,L"Red Color",vtMissing); spG2antt1->GetItems()->AddItem(long(255)); |
487 |
How can I center the predefined items in a drop down editor editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); var_Editor->PutDropDownAlignment(EXG2ANTTLib::CenterAlignment); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
486 |
How can I right align the items in a drop down editor editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); var_Editor->PutDropDownAlignment(EXG2ANTTLib::RightAlignment); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
485 |
How can I specify the width of the drop down editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutDropDownAutoWidth(EXG2ANTTLib::exDropDownEditorWidth); var_Editor->PutDropDownMinWidth(385); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(255)); var_Items->AddItem(long(65280)); |
484 |
How can hide the drop down button for an editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutDropDownVisible(VARIANT_FALSE); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(255)); var_Items->AddItem(long(65280)); |
483 |
How can assign a tooltip to a drop down list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); var_Editor->PutItemToolTip(long(1),L"This is a tooltip that shows when user hovers the <b>first</b> item"); var_Editor->PutItemToolTip(long(2),L"This is a tooltip that shows when user hovers the <b>second</b> item"); var_Editor->PutItemToolTip(long(3),L"This is a tooltip that shows when user hovers the <b>third</b> item"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
482 |
How can I lock, disable make read only an editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutLocked(VARIANT_TRUE); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
481 |
How can I sort the items in a drop down list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"Second item",vtMissing); var_Editor->AddItem(2,L"First item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); var_Editor->SortItems(VARIANT_TRUE,vtMissing); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
480 |
How can I expand an item in the tree or a hierarchy of a drop down editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown"))); var_Column->PutDef(EXG2ANTTLib::exCellValueFormat,long(1)); EXG2ANTTLib::IEditorPtr var_Editor = var_Column->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->PutDropDownAutoWidth(EXG2ANTTLib::exDropDownEditorWidth); var_Editor->AddItem(1,L"<b>CObject</b> class",long(1)); var_Editor->InsertItem(2,L"<b>CCmdTarget</b> class",long(2),long(1)); var_Editor->InsertItem(3,L"<b>CWnd</b> class",long(3),long(2)); var_Editor->InsertItem(6,L"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",long(1),long(1)); var_Editor->AddItem(4,L"Exceptions",long(1)); var_Editor->InsertItem(7,L"<b>System</b> Exceptions",long(2),long(4)); var_Editor->AddItem(5,L"File Services",long(2)); var_Editor->PutExpandItem(long(1),VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
479 |
How can I display a tree or a hierarchy in a drop down editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown"))); var_Column->PutDef(EXG2ANTTLib::exCellValueFormat,long(1)); EXG2ANTTLib::IEditorPtr var_Editor = var_Column->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->PutDropDownAutoWidth(EXG2ANTTLib::exDropDownEditorWidth); var_Editor->AddItem(1,L"<b>CObject</b> class",long(1)); var_Editor->InsertItem(2,L"<b>CCmdTarget</b> class",long(2),long(1)); var_Editor->InsertItem(3,L"<b>CWnd</b> class",long(3),long(2)); var_Editor->InsertItem(6,L"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",long(1),long(1)); var_Editor->AddItem(4,L"Exceptions",long(1)); var_Editor->InsertItem(7,L"<b>System</b> Exceptions",long(2),long(4)); var_Editor->AddItem(5,L"File Services",long(2)); var_Editor->ExpandAll(); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
478 |
How can I look for items that includes the typed characters in a drop down list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutOption(EXG2ANTTLib::exAutoSearch,long(1)); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
477 |
How can I keep the selection background color while editor is visible
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelBackColor(RGB(255,0,0)); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutOption(EXG2ANTTLib::exKeepSelBackColor,VARIANT_TRUE); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",vtMissing); var_Editor->AddItem(2,L"Second item",vtMissing); var_Editor->AddItem(3,L"Third item",vtMissing); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
476 |
How can I select from a drop down list the editor, when the user starts typing in the editor, while it is closed and focused
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutOption(EXG2ANTTLib::exAutoDropDownList,long(1)); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",long(1)); var_Editor->AddItem(2,L"Second item",long(3)); var_Editor->AddItem(3,L"Third item",long(2)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
475 |
How can I automatically drop down the list editor, when the user starts typing in the editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutOption(EXG2ANTTLib::exAutoDropDownList,long(-1)); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"First item",long(1)); var_Editor->AddItem(2,L"Second item",long(3)); var_Editor->AddItem(3,L"Third item",long(2)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
474 |
How can I add a Font editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Font")))->GetEditor()->PutEditType(EXG2ANTTLib::FontType); spG2antt1->GetItems()->AddItem("Tahoma"); |
473 |
How can I change the visual appearance for the buttons in the calculator editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CalculatorType); var_Editor->PutOption(EXG2ANTTLib::exCalcPictureUp,((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)")))); var_Editor->PutOption(EXG2ANTTLib::exCalcPictureDown,((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)")))); spG2antt1->GetItems()->AddItem(long(10)); |
472 |
How can I customize the caption of buttons in the calculator editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CalculatorType); var_Editor->PutOption(EXG2ANTTLib::exCalcButtons,"0;1;2;3;4;5;6;7;8;9;<b>+</b>;<fgcolor=FF0000>=</fgcolor>"); spG2antt1->GetItems()->AddItem(long(10)); |
471 |
How can I customize the caption of buttons in the calculator editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CalculatorType); var_Editor->PutOption(EXG2ANTTLib::exCalcButtons,"0;1;2;3;4;5;6;7;8;9"); spG2antt1->GetItems()->AddItem(long(10)); |
470 |
How can I specify the width and height of the buttons in the calculator editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CalculatorType); var_Editor->PutOption(EXG2ANTTLib::exCalcButtonWidth,long(32)); var_Editor->PutOption(EXG2ANTTLib::exCalcButtonHeight,long(32)); spG2antt1->GetItems()->AddItem(long(10)); |
469 |
How can I change the "Cannot divide by zero" message that shows in the calculator editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CalculatorType); var_Editor->PutOption(EXG2ANTTLib::exCalcCannotDivideByZero,"Divizion by zero"); spG2antt1->GetItems()->AddItem(long(10)); |
468 |
How can I enable or disable executing operations while the calculator editor is focused and closed
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CalculatorType); var_Editor->PutOption(EXG2ANTTLib::exCalcExecuteKeys,VARIANT_FALSE); spG2antt1->GetItems()->AddItem(long(10)); |
467 |
How can I add a calculator editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor()->PutEditType(EXG2ANTTLib::CalculatorType); spG2antt1->GetItems()->AddItem(long(10)); |
466 |
How can I edit a number between a range or interval
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutNumeric(EXG2ANTTLib::exInteger); var_Editor->PutOption(EXG2ANTTLib::exSpinStep,long(0)); var_Editor->PutOption(EXG2ANTTLib::exSliderWidth,long(0)); var_Editor->PutOption(EXG2ANTTLib::exSliderMin,long(5)); var_Editor->PutOption(EXG2ANTTLib::exSliderMax,long(15)); spG2antt1->GetItems()->AddItem(long(10)); |
465 |
How can I hide or show the spin in the slider or track bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutOption(EXG2ANTTLib::exSpinStep,long(0)); spG2antt1->GetItems()->AddItem(long(10)); |
464 |
How can I add a slider or track bar editor, with a fixed size
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutOption(EXG2ANTTLib::exSliderWidth,long(64)); spG2antt1->GetItems()->AddItem(long(10)); |
463 |
How can I add a slider or track bar editor, so it covers half of the cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutOption(EXG2ANTTLib::exSliderWidth,long(-50)); spG2antt1->GetItems()->AddItem(long(10)); |
462 |
How can I add a slider or track bar editor, so it covers the full cell
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutOption(EXG2ANTTLib::exSliderWidth,long(-100)); spG2antt1->GetItems()->AddItem(long(10)); |
461 |
How can I add a slider or track bar editor within a range or interval of numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Spin from 5 to 15")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutNumeric(EXG2ANTTLib::exInteger); var_Editor->PutOption(EXG2ANTTLib::exSliderMin,long(5)); var_Editor->PutOption(EXG2ANTTLib::exSliderMax,long(15)); spG2antt1->GetItems()->AddItem(long(10)); |
460 |
How can I add a slider or track bar editor within a range or interval of float numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Spin from 5 to 15")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutNumeric(EXG2ANTTLib::exFloat); var_Editor->PutOption(EXG2ANTTLib::exSliderMin,long(0)); var_Editor->PutOption(EXG2ANTTLib::exSliderMax,long(1)); var_Editor->PutOption(EXG2ANTTLib::exSpinStep,"0.01"); var_Editor->PutOption(EXG2ANTTLib::exSliderStep,"0.01"); spG2antt1->GetItems()->AddItem("0.3"); |
459 |
How can I add a spin editor within a range or interval of float numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Spin from 5 to 15")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutNumeric(EXG2ANTTLib::exFloat); var_Editor->PutOption(EXG2ANTTLib::exSliderWidth,long(0)); var_Editor->PutOption(EXG2ANTTLib::exSliderMin,long(0)); var_Editor->PutOption(EXG2ANTTLib::exSliderMax,long(1)); var_Editor->PutOption(EXG2ANTTLib::exSpinStep,"0.01"); spG2antt1->GetItems()->AddItem("0.3"); |
458 |
How can I add a spin editor within a range or interval of numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Spin from 5 to 15")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SliderType); var_Editor->PutNumeric(EXG2ANTTLib::exInteger); var_Editor->PutOption(EXG2ANTTLib::exSliderWidth,long(0)); var_Editor->PutOption(EXG2ANTTLib::exSliderMin,long(5)); var_Editor->PutOption(EXG2ANTTLib::exSliderMax,long(15)); spG2antt1->GetItems()->AddItem(long(10)); |
457 |
How can I add a slider or track bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Slider")))->GetEditor()->PutEditType(EXG2ANTTLib::SliderType); spG2antt1->GetItems()->AddItem(long(10)); |
456 |
I have check box column, but the check-boxes looks disabled. What can I do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Check")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CheckValueType); var_Editor->PutOption(EXG2ANTTLib::exCheckValue2,long(1)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(VARIANT_FALSE); var_Items->AddItem(VARIANT_TRUE); var_Items->AddItem(VARIANT_FALSE); |
455 |
How do I add check box column, so the cell value is changed as I click the cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutMarkSearchColumn(VARIANT_FALSE); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"C"))); var_Column->PutWidth(18); var_Column->PutAllowSizing(VARIANT_FALSE); EXG2ANTTLib::IEditorPtr var_Editor = var_Column->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CheckValueType); var_Editor->PutOption(EXG2ANTTLib::exCheckValue2,long(1)); spG2antt1->GetColumns()->Add(L"Text"); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellValue(var_Items->AddItem(VARIANT_FALSE),long(1),"Check 1"); var_Items->PutCellValue(var_Items->AddItem(VARIANT_TRUE),long(1),"Check 2"); var_Items->PutCellValue(var_Items->AddItem(VARIANT_FALSE),long(1),"Check 3"); |
454 |
How do I add check box column, so the cell value is changed as I click the cells
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Check")))->GetEditor()->PutEditType(EXG2ANTTLib::CheckValueType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(VARIANT_FALSE); var_Items->AddItem(VARIANT_TRUE); var_Items->AddItem(VARIANT_FALSE); |
453 |
How do I disable adding new lines using the ENTER key in a memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoDropDownType); var_Editor->PutOption(EXG2ANTTLib::exMemoDropDownAcceptReturn,VARIANT_FALSE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem(_bstr_t("This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break th") + "e line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
452 |
How do I add a vertical scroll bar for a memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoDropDownType); var_Editor->PutOption(EXG2ANTTLib::exMemoVScrollBar,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem(_bstr_t("This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break th") + "e line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
451 |
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoDropDownType); var_Editor->PutOption(EXG2ANTTLib::exMemoHScrollBar,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem(_bstr_t("This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break th") + "e line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
450 |
How can I specify the width or the height for a drop down memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoDropDownType); var_Editor->PutOption(EXG2ANTTLib::exMemoDropDownWidth,long(256)); var_Editor->PutOption(EXG2ANTTLib::exMemoDropDownHeight,long(64)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem("This is a long text that should break the line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
449 |
How do I add a drop down memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor()->PutEditType(EXG2ANTTLib::MemoDropDownType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem("This is a long text that should break the line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
448 |
How do I add a color list editor with my own or custom colors
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); var_Editor->PutOption(EXG2ANTTLib::exColorListShowName,VARIANT_TRUE); var_Editor->ClearItems(); var_Editor->AddItem(255,L"Red Color",vtMissing); var_Editor->AddItem(16711680,L"Blue Color",vtMissing); var_Editor->AddItem(65280,L"Green Color",vtMissing); spG2antt1->GetItems()->AddItem(long(255)); |
447 |
How do I add a color list editor with my own or custom colors
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); var_Editor->ClearItems(); var_Editor->AddItem(255,L"Red Color",vtMissing); var_Editor->AddItem(16711680,L"Blue Color",vtMissing); var_Editor->AddItem(65280,L"Green Color",vtMissing); spG2antt1->GetItems()->AddItem(long(255)); |
446 |
How can I show the color's name in a color list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorListType); var_Editor->PutOption(EXG2ANTTLib::exColorListShowName,VARIANT_TRUE); spG2antt1->GetItems()->AddItem(long(255)); |
445 |
How do I add a color list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor()->PutEditType(EXG2ANTTLib::ColorListType); spG2antt1->GetItems()->AddItem(long(255)); |
444 |
How can I access my own custom or ActiveX editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutDrawGridLines(EXG2ANTTLib::exAllLines); spG2antt1->PutDefaultItemHeight(128); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::UserEditorType); var_Editor->UserEditor(L"MSCAL.Calendar",L""); /* Copy and paste the following directives to your header file as it defines the namespace 'MSACAL' for the library: 'Microsoft Calendar Control 2007' #import <MSCAL.OCX> */ MSACAL::ICalendarPtr var_Calendar = ((MSACAL::ICalendarPtr)(var_Editor->GetUserEditorObject())); var_Calendar->PutBackColor(RGB(255,255,255)); var_Calendar->PutGridCellEffect(0); var_Calendar->PutShowTitle(VARIANT_FALSE); var_Calendar->PutShowDateSelectors(VARIANT_FALSE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("MSCal.Calendar"); var_Items->AddItem("MSCal.Calendar"); |
443 |
How can I add my own custom or ActiveX editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutDrawGridLines(EXG2ANTTLib::exAllLines); spG2antt1->PutDefaultItemHeight(128); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::UserEditorType); var_Editor->UserEditor(L"MSCAL.Calendar",L""); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("MSCal.Calendar"); var_Items->AddItem("MSCal.Calendar"); |
442 |
How can I add a hyperlink editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Shell.Execute")))->GetEditor()->PutEditType(EXG2ANTTLib::LinkEditType); spG2antt1->GetItems()->AddItem("http://www.exontrol.com"); spG2antt1->GetItems()->AddItem("c:\\"); |
441 |
How can I add a drop down editor, that allows only predefined values, but still being able to edit and select
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::PickEditType); var_Editor->AddItem(1,L"The first item",long(1)); var_Editor->AddItem(2,L"The second item",long(3)); var_Editor->AddItem(3,L"The third item",long(2)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("The first item"); var_Items->AddItem("The third item"); |
440 |
How can I show or hide the rectangle arround progress bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutSelBackColor(RGB(128,255,255)); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Progress")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ProgressBarType); var_Editor->PutOption(EXG2ANTTLib::exProgressBarMarkTicker,VARIANT_FALSE); spG2antt1->GetItems()->AddItem(long(33)); |
439 |
How can I hide the caption / percent in the progress bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutSelBackColor(RGB(128,255,255)); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Progress")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ProgressBarType); var_Editor->PutOption(EXG2ANTTLib::exProgressBarAlignment,long(-1)); spG2antt1->GetItems()->AddItem(long(33)); |
438 |
How can I align the caption in the center of the progress bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutSelBackColor(RGB(128,255,255)); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Progress")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ProgressBarType); var_Editor->PutOption(EXG2ANTTLib::exProgressBarAlignment,long(1)); spG2antt1->GetItems()->AddItem(long(33)); |
437 |
How can I align the caption to the right in the progress bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutSelBackColor(RGB(128,255,255)); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Progress")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ProgressBarType); var_Editor->PutOption(EXG2ANTTLib::exProgressBarAlignment,long(2)); spG2antt1->GetItems()->AddItem(long(33)); |
436 |
How can I change the background color for a progress bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutSelBackColor(RGB(128,255,255)); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Progress")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ProgressBarType); var_Editor->PutOption(EXG2ANTTLib::exProgressBarBackColor,long(255)); spG2antt1->GetItems()->AddItem(long(33)); |
435 |
How can I add a progress bar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutSelForeColor(RGB(0,0,0)); spG2antt1->PutSelBackColor(RGB(128,255,255)); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Progress")))->GetEditor()->PutEditType(EXG2ANTTLib::ProgressBarType); spG2antt1->GetItems()->AddItem(long(33)); |
434 |
How can I add a button editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Button")))->GetEditor()->PutEditType(EXG2ANTTLib::ButtonType); spG2antt1->GetItems()->AddItem("Just a text"); |
433 |
How can I show or hide the type of the OLE Object for Photo or a Picture editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->PutColumnAutoResize(VARIANT_FALSE); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Photo"))); var_Column->PutWidth(74); EXG2ANTTLib::IEditorPtr var_Editor = var_Column->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::PictureType); var_Editor->PutOption(EXG2ANTTLib::exShowPictureType,VARIANT_FALSE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem(vtMissing); var_Items->PutCellValue(h,long(0),((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\sample.bmp`)")))); var_Items->PutItemHeight(h,64); |
432 |
How can I add a Photo or a Picture editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Photo")))->GetEditor()->PutEditType(EXG2ANTTLib::PictureType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); long h = var_Items->AddItem(vtMissing); var_Items->PutCellValue(h,long(0),((IDispatch*)(spG2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\sample.bmp`)")))); var_Items->PutItemHeight(h,64); |
431 |
How can I hide or show the "System" page in the color editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorType); var_Editor->PutOption(EXG2ANTTLib::exColorShowSystem,VARIANT_FALSE); spG2antt1->GetItems()->AddItem(long(255)); |
430 |
How can I hide or show the "Palette" page in the color editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::ColorType); var_Editor->PutOption(EXG2ANTTLib::exColorShowPalette,VARIANT_FALSE); spG2antt1->GetItems()->AddItem(long(255)); |
429 |
How do I add a color editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Color")))->GetEditor()->PutEditType(EXG2ANTTLib::ColorType); spG2antt1->GetItems()->AddItem(long(255)); |
428 |
How do I change the masking character
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Mask")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MaskType); var_Editor->PutMask(L"###"); var_Editor->PutMaskChar(48); spG2antt1->GetItems()->AddItem(""); |
427 |
How do I mask an IP
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"IP")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MaskType); var_Editor->PutMask(L"{0,255}\\.{0,255}\\.{0,255}\\.{0,255}"); spG2antt1->GetItems()->AddItem("1.2.3.4"); |
426 |
How do I add a mask editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Mask")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MaskType); var_Editor->PutMask(L"{0,255}\\.{0,255}\\.{0,255}\\.{0,255}"); spG2antt1->GetItems()->AddItem("1.2.3.4"); |
425 |
How to show or hide the week numbers header in a drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateWeeksHeader,VARIANT_TRUE); spG2antt1->GetItems()->AddItem("Today"); |
424 |
How do I show or hide the bottom scroll bar in the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateShowScroll,VARIANT_FALSE); spG2antt1->GetItems()->AddItem("Today"); |
423 |
How do highlight the "Today" date is the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateMarkToday,VARIANT_TRUE); spG2antt1->GetItems()->AddItem("Today"); |
422 |
How do I show or hide the "Today" button is the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateShowTodayButton,VARIANT_FALSE); spG2antt1->GetItems()->AddItem("Today"); |
421 |
How to specify the first day of the week in the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateFirstWeekDay,long(1)); spG2antt1->GetItems()->AddItem("Today"); |
420 |
How to specifies the shortcut for the weekdays to be displayed in the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateWeekDays,"Du Lu Ma Mi Jo Vi Si"); spG2antt1->GetItems()->AddItem("Today"); |
419 |
How can I change the name of the months in the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateMonths,"Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre"); spG2antt1->GetItems()->AddItem("Today"); |
418 |
Can I change the "Today" caption being displayed in the drop down date picker calendar editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateTodayCaption,"Azi"); spG2antt1->GetItems()->AddItem("Today"); |
417 |
How can allow empty date to drop down date picker control or a calendar control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DateType); var_Editor->PutOption(EXG2ANTTLib::exDateAllowNullDate,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(COleDateTime(2012,5,12,0,00,00).operator DATE()); var_Items->AddItem(""); var_Items->AddItem(COleDateTime(2012,5,14,0,00,00).operator DATE()); |
416 |
How can I a drop down date picker control or a calendar control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Date")))->GetEditor()->PutEditType(EXG2ANTTLib::DateType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("Today"); |
415 |
How can I have an OR combination of my bit values, something like a check-box list editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IColumnPtr var_Column = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"CkeckList"))); var_Column->PutDef(EXG2ANTTLib::exCellValueFormat,long(1)); EXG2ANTTLib::IEditorPtr var_Editor = var_Column->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::CheckListType); var_Editor->AddItem(1,L"Bit <b>1</b>",vtMissing); var_Editor->AddItem(2,L"Bit <b>2</b>",vtMissing); var_Editor->AddItem(4,L"Bit <b>3</b>",vtMissing); var_Editor->AddItem(8,L"Bit <b>4</b>",vtMissing); var_Editor->AddItem(16,L"Bit <b>5</b>",vtMissing); var_Editor->AddItem(32,L"Bit <b>6</b>",vtMissing); var_Editor->AddItem(64,L"Bit <b>7</b>",vtMissing); var_Editor->AddItem(128,L"Bit <b>8</b>",vtMissing); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(112)); var_Items->AddItem(long(2)); |
414 |
How do I stop resizing the memo or a multiple lines edit control, while the user types
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoType); var_Editor->PutOption(EXG2ANTTLib::exMemoAutoSize,VARIANT_FALSE); var_Editor->PutOption(EXG2ANTTLib::exMemoHScrollBar,VARIANT_TRUE); var_Editor->PutOption(EXG2ANTTLib::exMemoVScrollBar,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem(_bstr_t("This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break th") + "e line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
413 |
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoType); var_Editor->PutOption(EXG2ANTTLib::exMemoHScrollBar,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem(_bstr_t("This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break th") + "e line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
412 |
How do I add a vertical scroll bar for a memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::MemoType); var_Editor->PutOption(EXG2ANTTLib::exMemoVScrollBar,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem(_bstr_t("This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break th") + "e line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
411 |
How do I add a memo or a multiple lines edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor()->PutEditType(EXG2ANTTLib::MemoType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->PutCellSingleLine(var_Items->AddItem("This is a long text that should break the line, and get it displayed on multiple lines."),long(0),EXG2ANTTLib::exCaptionWordWrap); |
410 |
How to specify the proposed change when the user clicks a spin control.
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SpinType); var_Editor->PutNumeric(EXG2ANTTLib::exInteger); var_Editor->PutOption(EXG2ANTTLib::exSpinStep,long(10)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(0)); var_Items->AddItem(long(10)); var_Items->AddItem(long(20)); |
409 |
How do I add a spin editor that allows only integer values
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::SpinType); var_Editor->PutNumeric(EXG2ANTTLib::exInteger); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(0)); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
408 |
How do I add a spin editor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor()->PutEditType(EXG2ANTTLib::SpinType); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(0)); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
407 |
How do I specify in a drop down list editor, that I do not want to have predefined icon
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"The first item",long(1)); var_Editor->AddItem(2,L"The second item",long(3)); var_Editor->AddItem(3,L"The third item",long(2)); var_Editor->PutOption(EXG2ANTTLib::exDropDownImage,VARIANT_FALSE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
406 |
How do I add a drop down editor, that allows only predefined values
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"DropDown")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::DropDownListType); var_Editor->AddItem(1,L"The first item",long(1)); var_Editor->AddItem(2,L"The second item",long(3)); var_Editor->AddItem(3,L"The third item",long(2)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem(long(1)); var_Items->AddItem(long(2)); |
405 |
How to allow the editor to work on insert or overtype mode
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->PutOption(EXG2ANTTLib::exEditAllowOverType,VARIANT_TRUE); var_Editor->PutOption(EXG2ANTTLib::exEditOverType,VARIANT_TRUE); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("000"); var_Items->AddItem("111"); var_Items->AddItem("222"); |
404 |
How to set foreground color for a locked, or read only edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->PutLocked(VARIANT_TRUE); var_Editor->PutOption(EXG2ANTTLib::exEditLockedForeColor,long(8421504)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("000"); var_Items->AddItem("111"); var_Items->AddItem("222"); |
403 |
How to set background color for a locked, or read only edit control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->PutLocked(VARIANT_TRUE); var_Editor->PutOption(EXG2ANTTLib::exEditLockedBackColor,long(8421504)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("000"); var_Items->AddItem("111"); var_Items->AddItem("222"); |
402 |
How to set the number of characters selected, when an EditType editor is opened
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->PutOption(EXG2ANTTLib::exEditSelLength,long(1)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("000"); var_Items->AddItem("111"); var_Items->AddItem("222"); |
401 |
How to set the starting point of text selected, when an EditType editor is opened
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); EXG2ANTTLib::IEditorPtr var_Editor = ((EXG2ANTTLib::IColumnPtr)(spG2antt1->GetColumns()->Add(L"Edit")))->GetEditor(); var_Editor->PutEditType(EXG2ANTTLib::EditType); var_Editor->PutOption(EXG2ANTTLib::exEditSelStart,long(1)); var_Editor->PutOption(EXG2ANTTLib::exEditSelLength,long(1)); EXG2ANTTLib::IItemsPtr var_Items = spG2antt1->GetItems(); var_Items->AddItem("000"); var_Items->AddItem("111"); var_Items->AddItem("222"); |